package com.clic.cloudops.web;

import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableEurekaClient
public class HelloController {

    @RequestMapping(value = "hello", method = RequestMethod.GET)
    public String index() {
//        ServiceInstance instance = client.getLocalServiceInstance();
//
//        logger.info("/hello, host:" + instance.getHost() + ", service_id:" + instance.getServiceId());
        return "Hello World";
    }
}